import type { EggPlugin } from 'egg'

const plugin: EggPlugin = {
  /**
   * built-in plugin
   * egg-static
   */

  tegg: {
    enable: true,
    package: '@eggjs/tegg-plugin',
  },
  teggConfig: {
    enable: true,
    package: '@eggjs/tegg-config',
  },
  teggController: {
    enable: true,
    package: '@eggjs/tegg-controller-plugin',
  },
  teggSchedule: {
    enable: true,
    package: '@eggjs/tegg-schedule-plugin',
  },
  eventbusModule: {
    enable: true,
    package: '@eggjs/tegg-eventbus-plugin',
  },
  aopModule: {
    enable: true,
    package: '@eggjs/tegg-aop-plugin',
  },
  tracer: {
    enable: true,
    package: 'egg-tracer',
  },
  nunjucks: {
    enable: true,
    package: 'egg-view-nunjucks',
  },
  // 通过 sequelize migrations 管理数据结构，而非手动操作 mysql 命令
  sequelize: {
    enable: true,
    package: 'egg-sequelize',
  },
}

export default plugin
